define(
  'controllers/conversation', [
    'jQuery',
    'sharezApp',
    'models/conversationModel',
  ],
  function($, sharezApp) {
    'use strict';

    var ConversationController = function($scope, $filter, $modal, conversationModel) {

      conversationModel.load(function(conversations) {
        console.log(conversations);
        $scope.conversations = conversations;
      }.bind(this));

    }

    sharezApp.controller('conversationController', ['$scope', '$filter', '$modal', 'conversationModel', ConversationController]);

  });



//      $scope.conversations = [
//        {'name': 'conversation one',
//          'snippet': 'This is a sample for conversation one'},
//        {'name': 'conversation two',
//          'snippet': 'Hello, I am conversation two'},
//        {'name': 'conversation three',
//          'snippet': 'And here is conversation three'},
//      ];

